<?php #//v.3.3.0
#///////////////////////////////////////////////////////
#//  COPYRIGHT 2004 Phpauction.org ALL RIGHTS RESERVED//
#///////////////////////////////////////////////////////


include "./includes/config.inc.php";




$sql_count_upcoming = "SELECT * FROM PHPAUCTIONXL_auctions 
				WHERE  
				( closed='0')  
				AND ( suspended='0') 
				AND private='n' 
				AND	starts>=".$NOW." 
				ORDER BY id";
				
				$result1 = mysql_query($sql_count_upcoming);
$total_upcoming = mysql_num_rows($result1);

$sql_count_live = "SELECT * FROM PHPAUCTIONXL_auctions 
				WHERE  
				( closed='0')  
				AND ( suspended='0') 
				AND private='n' 
				AND	starts<=".$NOW." 
				ORDER BY id";
				
							$result2 = mysql_query($sql_count_live);
$total_live = mysql_num_rows($result2);	
				

$sql_count_closed = "SELECT * FROM PHPAUCTIONXL_auctions 
				WHERE  
				( closed='1')  
				AND ( suspended='0') 
				AND private='n' 
				AND	starts<=".$NOW." 
				ORDER BY id";
	
							$result3 = mysql_query($sql_count_closed);
$total_closed = mysql_num_rows($result3);	
		



?>
